     var setting = {
    async: {
      enable: true,
      url: "coursetree",
      autoParam: ["id"],
      dataFilter: filter,
      contentType: "application/json",
      type:"get"
    },
    view: {
      expandSpeed: "",
      addHoverDom: addHoverDom,
      removeHoverDom: removeHoverDom,
      selectedMulti: false
    },
    check: {
      enable: true
    },
    edit: {
      enable: true
    },
    data: {
      simpleData: {
        enable: true
      }
    }
  };

  $(document).ready(function () {
    $.fn.zTree.init($("#treeDemo"), setting);
  });